home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_findindy.cog < prev    next >
Text File  |  1999-11-15  |  928b  |  54 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_FindIndy.cog
  4. #
  5. # Periodically prints Indy's position to the console.
  6. #
  7. # [RandyT]
  8. #
  9. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ========================================================================================
  12.  
  13. symbols
  14.  
  15. message        startup
  16. message        pulse
  17.  
  18. thing          indy                local
  19.  
  20. flex        interval=5.0
  21.  
  22. end
  23.  
  24. # ========================================================================================
  25.  
  26. code
  27.  
  28. startup:
  29.  
  30.     indy = GetLocalPlayerThing();
  31.     SetPulse(interval);
  32.  
  33.     return;
  34.  
  35. # ........................................................................................
  36.  
  37. pulse:
  38.  
  39.     Print("Indy's XYZ position:");
  40.     PrintVector(GetThingPos(indy));
  41.     Print("Indy's look vector PYR:");
  42.     PrintVector(GetThingLVecPYR(indy));
  43.     Print("Indy's head PYR:");
  44.     PrintVector(GetActorHeadPYR(indy));
  45.  
  46.     return;
  47.  
  48. end
  49.  
  50.  
  51.  
  52.  
  53.  
  54.